<div class="block">
  {% for link in site.links %}
    <a target="{% if link.external %}_blank{% else %}_top{% endif %}"
       class="main" 
       href="{% unless link.external %}{{ site.url }}{% endunless %}{{ link.url }}">
       {{ link.name }}
     </a>
  {% endfor %}
</div>